Page({
  data:{
    idcardFrontUrl:'',
    idcardBackUrl:'',
    id: '',
    point: '',
    building: '',
    room: '',
    name: '',
    gender: 1,
    mobile: '',
    status: 1
  },
  onLoad({houseId}){
    this.getHouse(houseId)
  },
  // houseId=6884784398053376
  async getHouse(houseId){
    const res = await wx.http({
      url:'/room/' + houseId
    })
    this.setData({...res.data})
    console.log(res.data);
  },
  editHouse() {
    wx.navigateTo({
      url: '/house_pkg/pages/form/index?id=' + this.data.id,
    })
  },
})
